package com.atguigu.spzx.feign.user;

import com.atguigu.spzx.feign.user.fallback.UserAddressFeignClientFallback;
import com.atguigu.spzx.model.entity.h5.UserAddress;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName: UserAddressFeignClient
 * @Package: com.atguigu.spzx.frign.user
 * @Description 远程调用用户接口
 * @Author 孤妤
 * @Date: 2023/12/20 21:02
 */
@FeignClient(value = "service-user",fallback = UserAddressFeignClientFallback.class)
public interface UserAddressFeignClient {
    @GetMapping("/api/user/userAddress/getUserAddress/{id}")
    UserAddress findUserAddressById(@PathVariable Long id);
}
